package DataBase;

import weka.core.Instances;
import weka.experiment.InstanceQuery;

public class WekaDbReader {

    public void bdReader() {
    }

    public Instances loadData(String queryMsg) throws Exception {
        InstanceQuery query = new InstanceQuery();
        query.setUsername("root");
        query.setPassword("root");
        query.setQuery(queryMsg);
        Instances data = query.retrieveInstances();
        return data;
    }
}
